package com.info.zhiduoduo.weixin.formbean.partner;

import com.info.zhiduoduo.repository.entity.marketingcooperative.MarketingCooperativeRecord;

import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class PartnerMarketingCooperativeRecordFormBean {

	/**
	 * 合伙人id
	 */
	@ApiModelProperty("合伙人id")
	@NotNull(message = "合伙人ID无效")
	private Integer partnerid;

	/**
	 * 企业id
	 */
	@ApiModelProperty("企业id")
	private Integer compid;

	/**
	 * 海报配置id
	 */
	@ApiModelProperty("海报配置id")
	private Integer posterConfigId;

	/**
	 * 表单id
	 */
	@ApiModelProperty("表单id")
	private Integer formId;

	/**
	 * col1
	 */
	private String col1;

	/**
	 * col2
	 */
	private String col2;

	/**
	 * col3
	 */
	private String col3;

	/**
	 * col4
	 */
	private String col4;

	/**
	 * col5
	 */
	private String col5;

	/**
	 * col6
	 */
	private String col6;

	/**
	 * col7
	 */
	private String col7;

	/**
	 * col8
	 */
	private String col8;

	/**
	 * col9
	 */
	private String col9;

	/**
	 * col10
	 */
	private String col10;


	public MarketingCooperativeRecord toEntity() {
		MarketingCooperativeRecord record = new MarketingCooperativeRecord();
		BeanUtils.copyProperties(this, record);
		return record;
	}

}
